<!-- BEGIN: Pagina -->
<script>
	function envia(obj){

		opcao = obj.name;
		form = document.formCategoria;

		if(opcao == "btNovaCateg"){
			form.action="insereCategoriaB.php?usarDepoimento=1"
		}
		else if(opcao == "btSub"){
			form.action="insereSubCategoriaB.php?idObjeto={idObjeto}"
		}else if(opcao == "btInserir"){
			form.action="bancoInsereDepoimentoCurso.php"
		}

		form.method = "POST";
		form.submit();

	}
</script>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Experi&ecirc;ncias do Processo de Adoecimento</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="vivencias.css" rel="stylesheet" type="text/css">
</head>

<body bgcolor="f4f1fc">
<div align="center">
  <table width="550" border="0">
    <tr>
      <td align="center" valign="top"> <table width="100%" border="0" cellpadding="5" cellspacing="1">
          <tr> 
            <td colspan="4" align="center" valign="middle" bgcolor="ddd9e9"><table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#FFFFFF">
                <tr bgcolor="#38708F" class="texttab"> 
                  <td align="left" valign="middle" bgcolor="9786c6" class="ativo">Inserir 
                    Depoimento no Curso Corrente</td>
                  <td width="18%" align="right" valign="middle" bgcolor="9786c6" class="titprincipal"><a href="javascript:void(0)" onclick="window.close()"><img src="imagens/x.jpg" width="21" height="21" border="0"></a></td>
                </tr>
              </table></td>
          </tr>
          <tr> 
            <td colspan="4" bgcolor="ddd9e9"><div align="center"> 
                <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#FFFFFF">
                  <tr bgcolor="c6bedf" class="texttab"> 
                    <td colspan="2"><span class="azul"><strong>{frase}</strong></span><br> 
                      <span class="texto2">{comentario}</span></td>
                  </tr>
                  <tr bgcolor="c6bedf" class="texttab"> 
                    <td width="38%" class="texto2"><strong>Respons&aacute;vel</strong></td>
                    <td width="62%" align="left" valign="middle" class="texto2">{responsavel}</td>
                  </tr>
                </table>
              </div></td>
          </tr>
	  <form name="formCategoria" method="post">
          <tr>
            <td colspan="4" align="left" valign="middle" bgcolor="ddd9e9"><table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#FFFFFF">
                <tr bgcolor="ddd9e9" class="texttab"> 
                  <td class="texto2"><strong>Inserir na Categoria</strong></td>
                  <td align="left" valign="middle" bgcolor="ddd9e9" class="texto2"><strong> 
                   <select name="categoria" onchange="javascript:document.formCategoria.action='bancoUsarDepoimentoCurso.php?idObjeto={idObjeto}';document.formCategoria.submit()">
			<option value="0"></option>
			<!-- BEGIN: Categoria -->		      
			<option value="{idCategoria}" {selectedC}>{nomeCategoria}</option>
			<!-- END: Categoria -->
		    </select>
		    <!--<form name="formCriarCategoria" method="post" action="insereCategoriaB.php?usarDepoimento=1">-->
                    	<span class="miudo">Criar nova categoria:</span> 
                    	<input name="nomeCategoria" type="text" size="30">
			<input type="hidden" name="idObjeto" value="{idObjeto}">
                    	<input type="button" name="btNovaCateg" value="Ok" onclick="envia(this)">
		    <!--</form>-->
                    </strong></td>
                </tr>
                <tr bgcolor="ddd9e9" class="texttab"> 
                  <td width="38%" class="texto2"><strong>Inserir na Subcategoria</strong></td>
                  <td width="62%" align="left" valign="middle" bgcolor="ddd9e9" class="texto2"><strong> 
                    <select name="subcategoria">
		      <option value="0"></option>
		      <!-- BEGIN: SubCategoria -->	
                      <option value="{idSubcategoria}">{nomeSubcategoria}</option>
		      <!-- END: SubCategoria -->	
                    </select>
		    <!--<form name="formSubCategoria" method="post" action="insereSubCategoriaB.php?idObjeto={idObjeto}">-->
                    	<span class="miudo">Criar nova subcategoria:</span> 
                    	<input name="nomeSubCategoria" type="text" size="30">
			<input type="hidden" name="lugarCadastro" value="2">		    	
			<input type="hidden" name="idCategoria" value="{idCategoriaS}">
                    	<input type="button" name="btSub" value="Ok" onclick="envia(this)">
                    <!--</form>--> 
		    </strong></td>
                </tr>
              </table></td>
          </tr>
          <tr> 
            <td colspan="4" align="left" valign="middle" bgcolor="ddd9e9"> <div align="left"><strong> 
                <input type="button" name="btInserir" value="Inserir" onclick="envia(this)">
                </strong></div></td>
          </tr>
	  </form>
        </table>
        <p align="center"><br>
        </p>
        </td>
    </tr>
  </table>
  <p>&nbsp;</p>
  </div>
</body>
</html><!-- END: Pagina -->
